package com.summer.framework.api.feign.service.stream;

import com.summer.framework.api.dto.Msg;
import com.summer.framework.common.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @auther: 杨杰
 * @date: 2019/5/13 13:50
 * @description:
 */
@FeignClient(value = ServiceNameConstants.SERVICE_STREAM/*,fallbackFactory = StreamApiServiceFactory.class*/)
public interface StreamApiService {

    @RequestMapping(value = "/msg/send", method = RequestMethod.POST)
    boolean send(@RequestBody Msg msg);

    @RequestMapping(value = "/com/summer/framework/api/num/test", method = RequestMethod.POST)
    int save();

    @RequestMapping(value = "/com/summer/framework/api/num/test", method = RequestMethod.GET)
    int get();
}
